package DataAccess;

/** 
 Data Access Layer Object Collection Of Bank
*/
public class BankCollection extends DataAccessCollectionBase
{
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����ͻ���
	public BankCollection()
	{
		super();
	}
	@Override
	protected DataTable BuildTable()
	{
		DataTable dt = new DataTable();
		dt.Columns.Add("Hy_Num",Integer.class);
		dt.Columns.Add("Hy_Name",String.class);
		dt.Columns.Add("Input_Money",java.math.BigDecimal.class);
		dt.Columns.Add("Output_Money",java.math.BigDecimal.class);
		dt.Columns.Add("Balance",java.math.BigDecimal.class);
		dt.Columns.Add("zt",String.class);
		dt.Columns.Add("RealName",String.class);
		dt.Columns.Add("BankName",String.class);
		dt.Columns.Add("CardCode",String.class);
		dt.Columns.Add("addtime",java.time.LocalDateTime.class);
		dt.Columns.Add("sheng",String.class);
		dt.Columns.Add("shi",String.class);
		dt.Columns.Add("zhihang",String.class);
		dt.Columns.Add("shengfzh",String.class);
		dt.Columns.Add("zhifumima",String.class);
		dt.Columns.Add("zhifubao",String.class);
		dt.Columns.Add("ifedit",String.class);
		dt.Columns.Add("shenfenzheng",String.class);
		return dt;
	}
	@Override
	protected DataAccessBase GetItemByIndex(int index)
	{
		return new Bank(_DataTable.Rows[index]);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����ͻ���
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ����
	public final DataTable getTable()
	{
		return super._DataTable;
	}
	public final Bank getItem(int index)
	{
		return new Bank(_DataTable.Rows[index]);
	}
	public final void setItem(int index, Bank value)
	{
		_DataTable.Rows.RemoveAt(index);
		_DataTable.Rows.InsertAt(value.getDataRow(),index);
	}
	public enum Field
	{
		Hy_Num,
		Hy_Name,
		Input_Money,
		Output_Money,
		Balance,
		zt,
		RealName,
		BankName,
		CardCode,
		addtime,
		sheng,
		shi,
		zhihang,
		shengfzh,
		zhifumima,
		zhifubao,
		ifedit,
		shenfenzheng;

		public int getValue()
		{
			return this.ordinal();
		}

		public static Field forValue(int value)
		{
			return values()[value];
		}
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ����
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ��������
	protected final boolean ListByCondition(String condition)
	{
		String sql = "" + "\r\n" +
"				Select" + "\r\n" +
"					Hy_Num," + "\r\n" +
"					Hy_Name," + "\r\n" +
"					Input_Money," + "\r\n" +
"					Output_Money," + "\r\n" +
"					Balance," + "\r\n" +
"					zt," + "\r\n" +
"					RealName," + "\r\n" +
"					BankName," + "\r\n" +
"					CardCode," + "\r\n" +
"					addtime," + "\r\n" +
"					sheng," + "\r\n" +
"					shi," + "\r\n" +
"					zhihang," + "\r\n" +
"					shengfzh," + "\r\n" +
"					zhifumima," + "\r\n" +
"					zhifubao," + "\r\n" +
"					ifedit," + "\r\n" +
"					shenfenzheng" + "\r\n" +
"				  From Bank" + "\r\n" +
"				 Where " + condition + "\r\n" +
"			";
		return super.ListBySql(sql);
	}

	public final boolean ListAll()
	{
		String condition = "1=1";
		return ListByCondition(condition);
	}
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ��������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#region ���淽��
	//TODO: �����ķ������������
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
		///#endregion ���淽��
}